package org.jeecg.modules.procurement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 原料采购订单
 * @Author: jeecg-boot
 * @Date:   2024-06-07
 * @Version: V1.0
 */
@ApiModel(value="buss_material_procurement对象", description="原料采购订单")
@Data
@TableName("buss_material_procurement")
public class BussMaterialProcurement implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String code;
	/**购货数量*/
	@Excel(name = "购货数量", width = 15)
    @ApiModelProperty(value = "购货数量")
    private java.math.BigDecimal num;
	/**运输方式*/

    @Dict(dicCode = "transportation_method")
	@Excel(name = "运输方式", width = 15)
    @ApiModelProperty(value = "运输方式")
    private String transport;
	/**到货描述*/
	@Excel(name = "到货描述", width = 15)
    @ApiModelProperty(value = "到货描述")
    private String arrivalDesc;
	/**付款方式*/
    @Dict(dicCode = "payment_method")
	@Excel(name = "付款方式", width = 15)
    @ApiModelProperty(value = "付款方式")
    private String payment;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private String type;
	/**付款时间*/

    @Dict(dicCode = "payment_time")
	@Excel(name = "付款时间", width = 15)
    @ApiModelProperty(value = "付款时间")
    private String paymentTime;
	/**到货日期*/
	@Excel(name = "到货日期", width = 15)
    @ApiModelProperty(value = "到货日期")
    private String arrivalDate;
	/**到户价格*/
	@Excel(name = "到户价格", width = 15)
    @ApiModelProperty(value = "到户价格")
    private String arrivalPrice;
	/**总价格*/
	@Excel(name = "总价格", width = 15)
    @ApiModelProperty(value = "总价格")
    private String allPrice;
	/**其他事项*/
	@Excel(name = "其他事项", width = 15)
    @ApiModelProperty(value = "其他事项")
    private String otherRem;

    @Dict(dicCode = "erp_supplier,name,id")
    @ApiModelProperty(value = "供应商id")
    private String supplierId;

    @Dict(dicCode = "procurement_type")
    @ApiModelProperty(value = "采购类型")
    private Integer procurementType;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "采购人员")
    private String procurementPerson;
}
